package com.xiaolong.common.exception;

import com.xiaolong.common.constant.SystemCodeConstant;

public class SystemException extends BusinessException{
    public SystemException() {
        this.setCode(SystemCodeConstant.SYSTEM_FAIL_CODE);
    }

    public SystemException(String message) {
        super(message);
        this.setCode(SystemCodeConstant.SYSTEM_FAIL_CODE);
    }

    public SystemException(Throwable cause) {
        super(cause);
        this.setCode(SystemCodeConstant.SYSTEM_FAIL_CODE);
    }

    public SystemException(String message, Throwable cause) {
        super(message, cause);
        this.setCode(SystemCodeConstant.SYSTEM_FAIL_CODE);
    }
}
